		***		Barber Saloon Simulation	1	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		4, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 120.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 3. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.37 minutes...
  		Barber  begins hair cut of 19.58 minutes. ClientId: 0 Freechairs = 3 Cut? false.
  		Client id=0 begins hair cut of 19.58 minutes.
  		Client id=0 ends hair cut of 19.58 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 1 ***	

 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 26.45 minutes. ClientId: 1 Freechairs = 3 Cut? false.
  		Client id=1 begins hair cut of 26.45 minutes.
  		Client id=1 ends hair cut of 26.45 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 2 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 28.5 minutes. ClientId: 2 Freechairs = 3 Cut? false.
  		Client id=2 begins hair cut of 28.5 minutes.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=2 ends hair cut of 28.5 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Barber  begins hair cut of 21.39 minutes. ClientId: 3 Freechairs = 3 Cut? false.
  		Client id=3 begins hair cut of 21.39 minutes.
  		Client id=3 ends hair cut of 21.39 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 4 ***	

 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 27.85 minutes. ClientId: 4 Freechairs = 3 Cut? false.
  		Client id=4 begins hair cut of 27.85 minutes.
  		Client id=4 ends hair cut of 27.85 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 5 ***	

 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 15.39 minutes. ClientId: 5 Freechairs = 3 Cut? false.
  		Client id=5 begins hair cut of 15.39 minutes.
  		Client id=5 ends hair cut of 15.39 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 6 ***	

 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 27.96 minutes. ClientId: 6 Freechairs = 3 Cut? false.
  		Client id=6 begins hair cut of 27.96 minutes.
  		Client id=6 ends hair cut of 27.96 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 7 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 17.13 minutes. ClientId: 7 Freechairs = 3 Cut? false.
  		Client id=7 begins hair cut of 17.13 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 17.13 minutes. ClientId: 7 Freechairs = 2 Cut? false.
  		Client id=7 ends hair cut of 17.13 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 21.4 minutes.
  		Client id=8 ends hair cut of 21.4 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 9 ***	

 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 28.84 minutes. ClientId: 9 Freechairs = 3 Cut? false.
  		Client id=9 begins hair cut of 28.84 minutes.
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 28.84 minutes. ClientId: 9 Freechairs = 2 Cut? false.
  		Client id=9 ends hair cut of 28.84 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 10 ***	

  		Client id=10 begins hair cut of 16.81 minutes.
  		Client id=10 ends hair cut of 16.81 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 11 ***	

 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=11 begins hair cut of 20.18 minutes.
  		Barber  begins hair cut of 20.18 minutes. ClientId: 11 Freechairs = 3 Cut? false.
  		Client id=11 ends hair cut of 20.18 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 20.61 minutes. ClientId: 12 Freechairs = 3 Cut? false.
  		Client id=12 begins hair cut of 20.61 minutes.
  		Client id=12 ends hair cut of 20.61 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 13 ***	

 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 28.82 minutes. ClientId: 13 Freechairs = 3 Cut? false.
  		Client id=13 begins hair cut of 28.82 minutes.
 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=13 ends hair cut of 28.82 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 14 ***	

  		Barber  begins hair cut of 19.42 minutes. ClientId: 14 Freechairs = 3 Cut? false.
  		Client id=14 begins hair cut of 19.42 minutes.
  		Client id=14 ends hair cut of 19.42 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 15 ***	

 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 20.98 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 begins hair cut of 20.98 minutes.
  		Client id=15 ends hair cut of 20.98 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 16 ***	

 Client id= 16 arrives.  Client id=16 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 28.64 minutes. ClientId: 16 Freechairs = 3 Cut? false.
  		Client id=16 begins hair cut of 28.64 minutes.
  		Client id=16 ends hair cut of 28.64 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 17.
		*** Client id=16 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 17 ***	

 Client id= 17 arrives.  Client id=17 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 18.06 minutes. ClientId: 17 Freechairs = 3 Cut? false.
  		Client id=17 begins hair cut of 18.06 minutes.
  		Client id=17 ends hair cut of 18.06 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 18.
		*** Client id=17 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 18 ***	

 Client id= 18 arrives.  Client id=18 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 20.6 minutes. ClientId: 18 Freechairs = 3 Cut? false.
  		Client id=18 begins hair cut of 20.6 minutes.
  		Client id=18 ends hair cut of 20.6 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 19.
		*** Client id=18 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 19 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 19 arrives.  Client id=19 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 21.98 minutes. ClientId: 19 Freechairs = 3 Cut? false.
  		Client id=19 begins hair cut of 21.98 minutes.
  		Client id=19 ends hair cut of 21.98 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 20.
		*** Client id=19 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 20 ***	

 Client id= 20 arrives.  Client id=20 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 15.77 minutes. ClientId: 20 Freechairs = 3 Cut? false.
  		Client id=20 begins hair cut of 15.77 minutes.
  		Client id=20 ends hair cut of 15.77 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 21.
		*** Client id=20 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 21 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 21 arrives.  Client id=21 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 22.87 minutes. ClientId: 21 Freechairs = 3 Cut? false.
  		Client id=21 begins hair cut of 22.87 minutes.
  		Client id=21 ends hair cut of 22.87 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 22.
		*** Client id=21 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 22 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 22 arrives.  Client id=22 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 22.88 minutes. ClientId: 22 Freechairs = 3 Cut? false.
  		Client id=22 begins hair cut of 22.88 minutes.
  		Client id=22 ends hair cut of 22.88 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 23.
		*** Client id=22 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 23 ***	

 Client id= 23 arrives.  Client id=23 seats and waits. Freechairs = 3. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.23 minutes...
  		Client id=23 begins hair cut of 17.58 minutes.
  		Client id=23 ends hair cut of 17.58 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 24.
		*** Client id=23 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 24 ***	

 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 28.38 minutes. ClientId: 24 Freechairs = 3 Cut? false.
  		Client id=24 begins hair cut of 28.38 minutes.
  		Client id=24 ends hair cut of 28.38 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 25.
		*** Client id=24 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************


		***		Barber Saloon Simulation		***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		5, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 80.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 Client id= 0 arrives.
 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5.   Client id=0 seats and waits. Freechairs = 4. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.67 minutes...
  		Client id=0 begins hair cut of 15.28 minutes.
  		Barber  begins hair cut of 15.28 minutes. ClientId: 0 Freechairs = 4 Cut? false.
  		Client id=0 ends hair cut of 15.28 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 1 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 19.13 minutes. ClientId: 1 Freechairs = 4 Cut? false.
  		Client id=1 begins hair cut of 19.13 minutes.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=1 ends hair cut of 19.13 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 2 ***	

  		Barber  begins hair cut of 27.28 minutes. ClientId: 2 Freechairs = 4 Cut? false.
  		Client id=2 begins hair cut of 27.28 minutes.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=2 ends hair cut of 27.28 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Client id=3 begins hair cut of 23.02 minutes.
  		Barber  begins hair cut of 23.02 minutes. ClientId: 3 Freechairs = 4 Cut? false.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=3 ends hair cut of 23.02 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Client id=4 begins hair cut of 27.33 minutes.
  		Barber  begins hair cut of 27.33 minutes. ClientId: 4 Freechairs = 4 Cut? false.
 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=4 ends hair cut of 27.33 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Client id=5 begins hair cut of 18.92 minutes.
  		Barber  begins hair cut of 18.92 minutes. ClientId: 5 Freechairs = 4 Cut? false.
  		Client id=5 ends hair cut of 18.92 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 6 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 15.32 minutes. ClientId: 6 Freechairs = 4 Cut? false.
  		Client id=6 begins hair cut of 15.32 minutes.
  		Client id=6 ends hair cut of 15.32 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 7 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.17 minutes. ClientId: 7 Freechairs = 4 Cut? false.
  		Client id=7 begins hair cut of 25.17 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 25.17 minutes. ClientId: 7 Freechairs = 3 Cut? false.
  		Client id=7 ends hair cut of 25.17 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 23.08 minutes.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 3. Trials: 1.
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=8 ends hair cut of 23.08 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 9 ***	

  		Client id=9 begins hair cut of 18.14 minutes.
  		Barber  begins hair cut of 18.14 minutes. ClientId: 9 Freechairs = 3 Cut? false.
  		Client id=9 ends hair cut of 18.14 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 10 ***	

  		Client id=10 begins hair cut of 18.34 minutes.
  		Barber  begins hair cut of 18.34 minutes. ClientId: 10 Freechairs = 4 Cut? false.
  		Client id=10 ends hair cut of 18.34 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 11 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 15.5 minutes. ClientId: 11 Freechairs = 4 Cut? false.
  		Client id=11 begins hair cut of 15.5 minutes.
  		Client id=11 ends hair cut of 15.5 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 17.12 minutes. ClientId: 12 Freechairs = 4 Cut? false.
  		Client id=12 begins hair cut of 17.12 minutes.
  		Client id=12 ends hair cut of 17.12 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 13 ***	

 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 20.4 minutes. ClientId: 13 Freechairs = 4 Cut? false.
  		Client id=13 begins hair cut of 20.4 minutes.
  		Client id=13 ends hair cut of 20.4 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 14 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 26.39 minutes. ClientId: 14 Freechairs = 4 Cut? false.
  		Client id=14 begins hair cut of 26.39 minutes.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 3. Trials: 1.
 Client id= 16 arrives.  Client id=16 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=14 ends hair cut of 26.39 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 15 ***	

  		Barber  begins hair cut of 25.66 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 begins hair cut of 25.66 minutes.
  		Barber  begins hair cut of 25.66 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 ends hair cut of 25.66 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 16 ***	

  		Client id=16 begins hair cut of 18.61 minutes.
 Client id= 17 arrives.  Client id=17 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=16 ends hair cut of 18.61 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 17.
		*** Client id=16 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 17 ***	

  		Client id=17 begins hair cut of 20.49 minutes.
  		Barber  begins hair cut of 20.49 minutes. ClientId: 17 Freechairs = 4 Cut? false.
  		Client id=17 ends hair cut of 20.49 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 18.
		*** Client id=17 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 18 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 18 arrives.  Client id=18 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 29.8 minutes. ClientId: 18 Freechairs = 4 Cut? false.
  		Client id=18 begins hair cut of 29.8 minutes.
  		Client id=18 ends hair cut of 29.8 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 19.
		*** Client id=18 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 19 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 19 arrives.  Client id=19 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.61 minutes. ClientId: 19 Freechairs = 4 Cut? false.
  		Client id=19 begins hair cut of 24.61 minutes.
  		Client id=19 ends hair cut of 24.61 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 20.
		*** Client id=19 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 20 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 20 arrives.  Client id=20 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 23.34 minutes. ClientId: 20 Freechairs = 4 Cut? false.
  		Client id=20 begins hair cut of 23.34 minutes.
  		Client id=20 ends hair cut of 23.34 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 21.
		*** Client id=20 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 21 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 21 arrives.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.6 minutes...  Client id=21 seats and waits. Freechairs = 4. Trials: 1.
  		Client id=21 begins hair cut of 16.69 minutes.
  		Client id=21 ends hair cut of 16.69 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 22.
		*** Client id=21 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 22 ***	

 Client id= 22 arrives.  Client id=22 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 23.35 minutes. ClientId: 22 Freechairs = 4 Cut? false.
  		Client id=22 begins hair cut of 23.35 minutes.
  		Client id=22 ends hair cut of 23.35 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 23.
		*** Client id=22 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 23 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 23 arrives.  Client id=23 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.22 minutes. ClientId: 23 Freechairs = 4 Cut? false.
  		Client id=23 begins hair cut of 24.22 minutes.
  		Client id=23 ends hair cut of 24.22 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 24.
		*** Client id=23 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 24 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.51 minutes. ClientId: 24 Freechairs = 4 Cut? false.
  		Client id=24 begins hair cut of 25.51 minutes.
  		Client id=24 ends hair cut of 25.51 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 25.
		*** Client id=24 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************




		***		Barber Saloon Simulation	2	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		5, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 80.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 Client id= 0 arrives.
 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5.   Client id=0 seats and waits. Freechairs = 4. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.67 minutes...
  		Client id=0 begins hair cut of 15.28 minutes.
  		Barber  begins hair cut of 15.28 minutes. ClientId: 0 Freechairs = 4 Cut? false.
  		Client id=0 ends hair cut of 15.28 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 1 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 19.13 minutes. ClientId: 1 Freechairs = 4 Cut? false.
  		Client id=1 begins hair cut of 19.13 minutes.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=1 ends hair cut of 19.13 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 2 ***	

  		Barber  begins hair cut of 27.28 minutes. ClientId: 2 Freechairs = 4 Cut? false.
  		Client id=2 begins hair cut of 27.28 minutes.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=2 ends hair cut of 27.28 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Client id=3 begins hair cut of 23.02 minutes.
  		Barber  begins hair cut of 23.02 minutes. ClientId: 3 Freechairs = 4 Cut? false.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=3 ends hair cut of 23.02 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Client id=4 begins hair cut of 27.33 minutes.
  		Barber  begins hair cut of 27.33 minutes. ClientId: 4 Freechairs = 4 Cut? false.
 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=4 ends hair cut of 27.33 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Client id=5 begins hair cut of 18.92 minutes.
  		Barber  begins hair cut of 18.92 minutes. ClientId: 5 Freechairs = 4 Cut? false.
  		Client id=5 ends hair cut of 18.92 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 6 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 15.32 minutes. ClientId: 6 Freechairs = 4 Cut? false.
  		Client id=6 begins hair cut of 15.32 minutes.
  		Client id=6 ends hair cut of 15.32 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 7 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.17 minutes. ClientId: 7 Freechairs = 4 Cut? false.
  		Client id=7 begins hair cut of 25.17 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 25.17 minutes. ClientId: 7 Freechairs = 3 Cut? false.
  		Client id=7 ends hair cut of 25.17 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 23.08 minutes.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 3. Trials: 1.
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=8 ends hair cut of 23.08 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 9 ***	

  		Client id=9 begins hair cut of 18.14 minutes.
  		Barber  begins hair cut of 18.14 minutes. ClientId: 9 Freechairs = 3 Cut? false.
  		Client id=9 ends hair cut of 18.14 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 10 ***	

  		Client id=10 begins hair cut of 18.34 minutes.
  		Barber  begins hair cut of 18.34 minutes. ClientId: 10 Freechairs = 4 Cut? false.
  		Client id=10 ends hair cut of 18.34 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 11 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 15.5 minutes. ClientId: 11 Freechairs = 4 Cut? false.
  		Client id=11 begins hair cut of 15.5 minutes.
  		Client id=11 ends hair cut of 15.5 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 17.12 minutes. ClientId: 12 Freechairs = 4 Cut? false.
  		Client id=12 begins hair cut of 17.12 minutes.
  		Client id=12 ends hair cut of 17.12 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 13 ***	

 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 20.4 minutes. ClientId: 13 Freechairs = 4 Cut? false.
  		Client id=13 begins hair cut of 20.4 minutes.
  		Client id=13 ends hair cut of 20.4 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 14 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 26.39 minutes. ClientId: 14 Freechairs = 4 Cut? false.
  		Client id=14 begins hair cut of 26.39 minutes.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 3. Trials: 1.
 Client id= 16 arrives.  Client id=16 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=14 ends hair cut of 26.39 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 15 ***	

  		Barber  begins hair cut of 25.66 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 begins hair cut of 25.66 minutes.
  		Barber  begins hair cut of 25.66 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 ends hair cut of 25.66 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 16 ***	

  		Client id=16 begins hair cut of 18.61 minutes.
 Client id= 17 arrives.  Client id=17 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=16 ends hair cut of 18.61 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 17.
		*** Client id=16 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 17 ***	

  		Client id=17 begins hair cut of 20.49 minutes.
  		Barber  begins hair cut of 20.49 minutes. ClientId: 17 Freechairs = 4 Cut? false.
  		Client id=17 ends hair cut of 20.49 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 18.
		*** Client id=17 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 18 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 18 arrives.  Client id=18 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 29.8 minutes. ClientId: 18 Freechairs = 4 Cut? false.
  		Client id=18 begins hair cut of 29.8 minutes.
  		Client id=18 ends hair cut of 29.8 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 19.
		*** Client id=18 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 19 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 19 arrives.  Client id=19 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.61 minutes. ClientId: 19 Freechairs = 4 Cut? false.
  		Client id=19 begins hair cut of 24.61 minutes.
  		Client id=19 ends hair cut of 24.61 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 20.
		*** Client id=19 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 20 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 20 arrives.  Client id=20 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 23.34 minutes. ClientId: 20 Freechairs = 4 Cut? false.
  		Client id=20 begins hair cut of 23.34 minutes.
  		Client id=20 ends hair cut of 23.34 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 21.
		*** Client id=20 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 21 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 21 arrives.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.6 minutes...  Client id=21 seats and waits. Freechairs = 4. Trials: 1.
  		Client id=21 begins hair cut of 16.69 minutes.
  		Client id=21 ends hair cut of 16.69 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 22.
		*** Client id=21 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 22 ***	

 Client id= 22 arrives.  Client id=22 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 23.35 minutes. ClientId: 22 Freechairs = 4 Cut? false.
  		Client id=22 begins hair cut of 23.35 minutes.
  		Client id=22 ends hair cut of 23.35 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 23.
		*** Client id=22 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 23 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 23 arrives.  Client id=23 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.22 minutes. ClientId: 23 Freechairs = 4 Cut? false.
  		Client id=23 begins hair cut of 24.22 minutes.
  		Client id=23 ends hair cut of 24.22 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 24.
		*** Client id=23 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 24 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.51 minutes. ClientId: 24 Freechairs = 4 Cut? false.
  		Client id=24 begins hair cut of 25.51 minutes.
  		Client id=24 ends hair cut of 25.51 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 25.
		*** Client id=24 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************



		***		Barber Saloon Simulation	3	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		4, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 60.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 3. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.34 minutes...
  		Barber  begins hair cut of 16.76 minutes. ClientId: 0 Freechairs = 3 Cut? false.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=0 begins hair cut of 16.76 minutes.
  		Client id=0 ends hair cut of 16.76 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Barber  begins hair cut of 28.26 minutes. ClientId: 1 Freechairs = 3 Cut? false.
  		Client id=1 begins hair cut of 28.26 minutes.
  		Client id=1 ends hair cut of 28.26 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 2 ***	

 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 26.5 minutes. ClientId: 2 Freechairs = 3 Cut? false.
  		Client id=2 begins hair cut of 26.5 minutes.
  		Client id=2 ends hair cut of 26.5 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 3 ***	

 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 25.45 minutes. ClientId: 3 Freechairs = 3 Cut? false.
  		Client id=3 begins hair cut of 25.45 minutes.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=3 ends hair cut of 25.45 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Barber  begins hair cut of 23.14 minutes. ClientId: 4 Freechairs = 3 Cut? false.
  		Client id=4 begins hair cut of 23.14 minutes.
 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=4 ends hair cut of 23.14 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Barber  begins hair cut of 28.86 minutes. ClientId: 5 Freechairs = 3 Cut? false.
  		Client id=5 begins hair cut of 28.86 minutes.
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 2. Trials: 1.
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=5 ends hair cut of 28.86 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 6 ***	

  		Client id=6 begins hair cut of 28.4 minutes.
  		Barber  begins hair cut of 28.4 minutes. ClientId: 6 Freechairs = 2 Cut? false.
  		Client id=6 ends hair cut of 28.4 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 7 ***	

  		Barber  begins hair cut of 28.04 minutes. ClientId: 7 Freechairs = 3 Cut? false.
  		Client id=7 begins hair cut of 28.04 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=7 ends hair cut of 28.04 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Barber  begins hair cut of 23.84 minutes. ClientId: 8 Freechairs = 3 Cut? false.
  		Client id=8 begins hair cut of 23.84 minutes.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=8 ends hair cut of 23.84 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 9 ***	

  		Barber  begins hair cut of 29.61 minutes. ClientId: 9 Freechairs = 3 Cut? false.
  		Client id=9 begins hair cut of 29.61 minutes.
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 29.61 minutes. ClientId: 9 Freechairs = 2 Cut? false.
  		Client id=9 ends hair cut of 29.61 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 10 ***	

  		Client id=10 begins hair cut of 17.89 minutes.
  		Client id=10 ends hair cut of 17.89 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 11 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 24.76 minutes. ClientId: 11 Freechairs = 3 Cut? false.
  		Client id=11 begins hair cut of 24.76 minutes.
  		Client id=11 ends hair cut of 24.76 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 16.77 minutes. ClientId: 12 Freechairs = 3 Cut? false.
  		Client id=12 begins hair cut of 16.77 minutes.
  		Client id=12 ends hair cut of 16.77 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 13 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 25.02 minutes. ClientId: 13 Freechairs = 3 Cut? false.
  		Client id=13 begins hair cut of 25.02 minutes.
  		Client id=13 ends hair cut of 25.02 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 14 ***	

 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 23.46 minutes. ClientId: 14 Freechairs = 3 Cut? false.
  		Client id=14 begins hair cut of 23.46 minutes.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=14 ends hair cut of 23.46 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 15 ***	

  		Barber  begins hair cut of 26.92 minutes. ClientId: 15 Freechairs = 3 Cut? false.
  		Client id=15 begins hair cut of 26.92 minutes.
 Client id= 16 arrives.  Client id=16 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=15 ends hair cut of 26.92 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 16 ***	

  		Client id=16 begins hair cut of 25.57 minutes.
  		Barber  begins hair cut of 25.57 minutes. ClientId: 16 Freechairs = 3 Cut? false.
 Client id= 17 arrives.  Client id=17 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=16 ends hair cut of 25.57 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 17.
		*** Client id=16 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 17 ***	

  		Client id=17 begins hair cut of 20.99 minutes.
  		Barber  begins hair cut of 20.99 minutes. ClientId: 17 Freechairs = 3 Cut? false.
  		Client id=17 ends hair cut of 20.99 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 18.
		*** Client id=17 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 18 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 18 arrives.  Client id=18 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 23.26 minutes. ClientId: 18 Freechairs = 3 Cut? false.
  		Client id=18 begins hair cut of 23.26 minutes.
 Client id= 19 arrives.  Client id=19 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=18 ends hair cut of 23.26 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 19.
		*** Client id=18 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 19 ***	

  		Barber  begins hair cut of 25.62 minutes. ClientId: 19 Freechairs = 3 Cut? false.
  		Client id=19 begins hair cut of 25.62 minutes.
 Client id= 20 arrives.  Client id=20 seats and waits. Freechairs = 2. Trials: 1.
 Client id= 21 arrives.  Client id=21 seats and waits. Freechairs = 1. Trials: 1.
  		Barber  begins hair cut of 25.62 minutes. ClientId: 19 Freechairs = 1 Cut? false.
  		Client id=19 ends hair cut of 25.62 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 20.
		*** Client id=19 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 20 ***	

  		Client id=20 begins hair cut of 22.01 minutes.
 Client id= 22 arrives.  Client id=22 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=20 ends hair cut of 22.01 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 21.
		*** Client id=20 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 21 ***	

  		Client id=21 begins hair cut of 26.65 minutes.
  		Barber  begins hair cut of 26.65 minutes. ClientId: 21 Freechairs = 2 Cut? false.
 Client id= 23 arrives.  Client id=23 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=21 ends hair cut of 26.65 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 22.
		*** Client id=21 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 22 ***	

  		Client id=22 begins hair cut of 23.84 minutes.
  		Barber  begins hair cut of 23.84 minutes. ClientId: 22 Freechairs = 2 Cut? false.
 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=22 ends hair cut of 23.84 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 23.
		*** Client id=22 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 23 ***	

  		Client id=23 begins hair cut of 26.02 minutes.
  		Barber  begins hair cut of 26.02 minutes. ClientId: 23 Freechairs = 2 Cut? false.
  		Client id=23 ends hair cut of 26.02 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 24.
		*** Client id=23 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 24 ***	

  		Client id=24 begins hair cut of 18.26 minutes.
  		Barber  begins hair cut of 18.26 minutes. ClientId: 24 Freechairs = 3 Cut? false.
  		Client id=24 ends hair cut of 18.26 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 25.
		*** Client id=24 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************

		***		Barber Saloon Simulation	5	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		5, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 30.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 4. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.61 minutes...
  		Client id=0 begins hair cut of 26.47 minutes.
  		Barber  begins hair cut of 26.47 minutes. ClientId: 0 Freechairs = 4 Cut? false.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 3. Trials: 1.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=0 ends hair cut of 26.47 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Client id=1 begins hair cut of 20.04 minutes.
  		Barber  begins hair cut of 20.04 minutes. ClientId: 1 Freechairs = 3 Cut? false.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=1 ends hair cut of 20.04 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 2 ***	

  		Client id=2 begins hair cut of 20.86 minutes.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 20.86 minutes. ClientId: 2 Freechairs = 2 Cut? false.
  		Client id=2 ends hair cut of 20.86 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Client id=3 begins hair cut of 17.99 minutes.
  		Barber  begins hair cut of 17.99 minutes. ClientId: 3 Freechairs = 3 Cut? false.
 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=3 ends hair cut of 17.99 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Client id=4 begins hair cut of 15.17 minutes.
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 15.17 minutes. ClientId: 4 Freechairs = 2 Cut? false.
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=4 ends hair cut of 15.17 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Client id=5 begins hair cut of 21.03 minutes.
  		Barber  begins hair cut of 21.03 minutes. ClientId: 5 Freechairs = 2 Cut? false.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=5 ends hair cut of 21.03 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 6 ***	

  		Client id=6 begins hair cut of 27.91 minutes.
  		Barber  begins hair cut of 27.91 minutes. ClientId: 6 Freechairs = 2 Cut? false.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=6 ends hair cut of 27.91 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 7 ***	

 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=7 begins hair cut of 16.47 minutes.
  		Barber  begins hair cut of 16.47 minutes. ClientId: 7 Freechairs = 1 Cut? false.
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=7 ends hair cut of 16.47 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 27.71 minutes.
  		Barber  begins hair cut of 27.71 minutes. ClientId: 8 Freechairs = 1 Cut? false.
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=8 ends hair cut of 27.71 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 9 ***	

  		Client id=9 begins hair cut of 21.38 minutes.
  		Barber  begins hair cut of 21.38 minutes. ClientId: 9 Freechairs = 1 Cut? false.
 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=9 ends hair cut of 21.38 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 10 ***	

  		Client id=10 begins hair cut of 15.31 minutes.
 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 0. Trials: 1.
  		Barber  begins hair cut of 15.31 minutes. ClientId: 10 Freechairs = 0 Cut? false.
  		Client id=10 ends hair cut of 15.31 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 11 ***	

  		Client id=11 begins hair cut of 20.71 minutes.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 0. Trials: 1.
  		Barber  begins hair cut of 20.71 minutes. ClientId: 11 Freechairs = 0 Cut? false.
 Client id= 16 arrives.		Saloon full. Client id=16 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=11 ends hair cut of 20.71 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 12 ***	

  		Client id=12 begins hair cut of 27.85 minutes.
 Client id= 16 arrives again.  Client id=16 seats and waits. Freechairs = 0. Trials: 2.
  		Barber  begins hair cut of 27.85 minutes. ClientId: 12 Freechairs = 0 Cut? false.
 Client id= 17 arrives.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 18 arrives.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 19 arrives.		Saloon full. Client id=19 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=12 ends hair cut of 27.85 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 13 ***	

  		Client id=13 begins hair cut of 21.63 minutes.
  		Barber  begins hair cut of 21.63 minutes. ClientId: 13 Freechairs = 1 Cut? false.
 Client id= 19 arrives again.  Client id=19 seats and waits. Freechairs = 0. Trials: 2.
 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 2.

  		Client id=13 ends hair cut of 21.63 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 14 ***	

  		Client id=14 begins hair cut of 23.02 minutes.
  		Barber  begins hair cut of 23.02 minutes. ClientId: 14 Freechairs = 1 Cut? false.
 Client id= 20 arrives.  Client id=20 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=18 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 15 ***	

  		Client id=14 ends hair cut of 23.02 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 16 ***	

  		Client id=15 begins hair cut of 25.17 minutes.
 Client id= 21 arrives.  Client id=21 seats and waits. Freechairs = 0. Trials: 1.
  		Barber  begins hair cut of 25.17 minutes. ClientId: 15 Freechairs = 0 Cut? false.
 Client id= 22 arrives.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=17 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 17 ***	

 Client id= 22 arrives again.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 22 arrives again.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 3.

  		Client id=15 ends hair cut of 25.17 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 18 ***	

  		Client id=16 begins hair cut of 25.24 minutes.
  		Barber  begins hair cut of 25.24 minutes. ClientId: 16 Freechairs = 1 Cut? false.
 Client id= 23 arrives.  Client id=23 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 22 arrives again.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=22 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 19 ***	

  		Client id=16 ends hair cut of 25.24 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 17.
		*** Client id=16 departed. Freechairs = 1. Hair cut? true. Trials? 2. Clients departed: 20 ***	

 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=19 begins hair cut of 22.64 minutes.
  		Barber  begins hair cut of 22.64 minutes. ClientId: 19 Freechairs = 0 Cut? false.
  		Client id=19 ends hair cut of 22.64 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 18.
		*** Client id=19 departed. Freechairs = 1. Hair cut? true. Trials? 2. Clients departed: 21 ***	

  		Client id=20 begins hair cut of 15.89 minutes.
  		Barber  begins hair cut of 15.89 minutes. ClientId: 20 Freechairs = 1 Cut? false.
  		Client id=20 ends hair cut of 15.89 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 19.
		*** Client id=20 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 22 ***	

  		Client id=21 begins hair cut of 28.66 minutes.
  		Barber  begins hair cut of 28.66 minutes. ClientId: 21 Freechairs = 2 Cut? false.
  		Client id=21 ends hair cut of 28.66 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 20.
		*** Client id=21 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 23 ***	

  		Client id=23 begins hair cut of 17.28 minutes.
  		Barber  begins hair cut of 17.28 minutes. ClientId: 23 Freechairs = 3 Cut? false.
  		Client id=23 ends hair cut of 17.28 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 21.
		*** Client id=23 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 24 ***	

  		Client id=24 begins hair cut of 28.01 minutes.
  		Barber  begins hair cut of 28.01 minutes. ClientId: 24 Freechairs = 4 Cut? false.
  		Client id=24 ends hair cut of 28.01 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 22.
		*** Client id=24 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************


		***		Barber Saloon Simulation	6	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		25,	the nr total of clients 
 nChairs= 		4, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 6.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	187, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 3. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.36 minutes...
  		Client id=0 begins hair cut of 23.33 minutes.
  		Barber  begins hair cut of 23.33 minutes. ClientId: 0 Freechairs = 3 Cut? false.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 2. Trials: 1.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 1. Trials: 1.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 4 arrives.		Saloon full. Client id=4 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 5 arrives.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 6 arrives.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 7 arrives.		Saloon full. Client id=7 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 4 arrives again.		Saloon full. Client id=4 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 8 arrives.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=0 ends hair cut of 23.33 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Barber  begins hair cut of 17.24 minutes. ClientId: 1 Freechairs = 1 Cut? false.
  		Client id=1 begins hair cut of 17.24 minutes.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 7 arrives again.		Saloon full. Client id=7 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 10 arrives.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 11 arrives.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 4 arrives again.		Saloon full. Client id=4 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 12 arrives.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 13 arrives.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=1 ends hair cut of 17.24 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 2 ***	

  		Barber  begins hair cut of 21.34 minutes. ClientId: 2 Freechairs = 1 Cut? false.
 Client id= 4 arrives again.  Client id=4 seats and waits. Freechairs = 0. Trials: 4.
  		Client id=2 begins hair cut of 21.34 minutes.
 Client id= 14 arrives.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 15 arrives.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 16 arrives.		Saloon full. Client id=16 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 14 arrives again.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=5 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 3 ***	

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 7 arrives again.		Saloon full. Client id=7 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 17 arrives.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 14 arrives again.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 18 arrives.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=8 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 4 ***	

 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 3.

  		Barber  begins hair cut of 21.34 minutes. ClientId: 2 Freechairs = 0 Cut? false.
  		Client id=2 ends hair cut of 21.34 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Client id=3 begins hair cut of 22.65 minutes.
 Client id= 14 arrives again.  Client id=14 seats and waits. Freechairs = 0. Trials: 4.
 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=11 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 6 ***	

 Client id= 19 arrives.		Saloon full. Client id=19 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 16 arrives again.		Saloon full. Client id=16 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 20 arrives.		Saloon full. Client id=20 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 7 arrives again.		Saloon full. Client id=7 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=7 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 7 ***	

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 20 arrives again.		Saloon full. Client id=20 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 21 arrives.		Saloon full. Client id=21 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 22 arrives.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=6 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 8 ***	

 Client id= 23 arrives.		Saloon full. Client id=23 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 2.

  		Barber  begins hair cut of 22.65 minutes. ClientId: 3 Freechairs = 0 Cut? false.
  		Client id=3 ends hair cut of 22.65 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 9 ***	

  		Client id=9 begins hair cut of 27.36 minutes.
 Client id= 24 arrives.  Client id=24 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 18 arrives again.		Saloon full. Client id=18 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=18 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 10 ***	

 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=12 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 11 ***	

 Client id= 19 arrives again.		Saloon full. Client id=19 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 16 arrives again.		Saloon full. Client id=16 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=13 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 12 ***	

 Client id= 16 arrives again.		Saloon full. Client id=16 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=16 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 13 ***	

 Client id= 19 arrives again.		Saloon full. Client id=19 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 17 arrives again.		Saloon full. Client id=17 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=17 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 14 ***	

 Client id= 20 arrives again.		Saloon full. Client id=20 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 23 arrives again.		Saloon full. Client id=23 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 21 arrives again.		Saloon full. Client id=21 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 20 arrives again.		Saloon full. Client id=20 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=20 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 15 ***	

 Client id= 22 arrives again.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=10 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 16 ***	

  		Barber  begins hair cut of 27.36 minutes. ClientId: 9 Freechairs = 0 Cut? false.
 Client id= 19 arrives again.		Saloon full. Client id=19 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=19 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 17 ***	

  		Client id=9 ends hair cut of 27.36 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 5.
		*** Client id=9 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 18 ***	

  		Client id=4 begins hair cut of 18.73 minutes.
 Client id= 23 arrives again.  Client id=23 seats and waits. Freechairs = 0. Trials: 3.
 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=15 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 19 ***	

 Client id= 21 arrives again.		Saloon full. Client id=21 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 21 arrives again.		Saloon full. Client id=21 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=21 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 20 ***	

 Client id= 22 arrives again.		Saloon full. Client id=22 comes maybe later. Freechairs = 0. Trials: 3.

  		Client id=4 ends hair cut of 18.73 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 6.
		*** Client id=4 departed. Freechairs = 1. Hair cut? true. Trials? 4. Clients departed: 21 ***	

  		Client id=14 begins hair cut of 19.82 minutes.
  		Barber  begins hair cut of 19.82 minutes. ClientId: 14 Freechairs = 1 Cut? false.
 Client id= 22 arrives again.  Client id=22 seats and waits. Freechairs = 0. Trials: 4.
  		Client id=14 ends hair cut of 19.82 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 7.
		*** Client id=14 departed. Freechairs = 1. Hair cut? true. Trials? 4. Clients departed: 22 ***	

  		Client id=24 begins hair cut of 22.52 minutes.
  		Barber  begins hair cut of 22.52 minutes. ClientId: 24 Freechairs = 1 Cut? false.
  		Client id=24 ends hair cut of 22.52 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 8.
		*** Client id=24 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 23 ***	

  		Client id=23 begins hair cut of 28.64 minutes.
  		Barber  begins hair cut of 28.64 minutes. ClientId: 23 Freechairs = 2 Cut? false.
  		Client id=23 ends hair cut of 28.64 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 9.
		*** Client id=23 departed. Freechairs = 3. Hair cut? true. Trials? 3. Clients departed: 24 ***	

  		Client id=22 begins hair cut of 25.62 minutes.
  		Barber  begins hair cut of 25.62 minutes. ClientId: 22 Freechairs = 3 Cut? false.
  		Client id=22 ends hair cut of 25.62 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 10.
		*** Client id=22 departed. Freechairs = 4. Hair cut? true. Trials? 4. Clients departed: 25 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 4. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		
 Client id: 16 finished => thread joined.		Client id: 17 finished => thread joined.		
 Client id: 18 finished => thread joined.		Client id: 19 finished => thread joined.		
 Client id: 20 finished => thread joined.		Client id: 21 finished => thread joined.		
 Client id: 22 finished => thread joined.		Client id: 23 finished => thread joined.		
 Client id: 24 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************



		***		Barber Saloon Simulation	7	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		16,	the nr total of clients 
 nChairs= 		4, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 5.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	120, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 4,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 15.25 minutes. ClientId: 0 Freechairs = 3 Cut? false.
  		Client id=0 begins hair cut of 15.25 minutes.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 2. Trials: 1.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 1. Trials: 1.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 4 arrives.		Saloon full. Client id=4 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 5 arrives.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 6 arrives.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 1.

  		Barber  begins hair cut of 15.25 minutes. ClientId: 0 Freechairs = 0 Cut? false.
  		Client id=0 ends hair cut of 15.25 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Client id=1 begins hair cut of 16.5 minutes.
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 8 arrives.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 9 arrives.		Saloon full. Client id=9 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 10 arrives.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 9 arrives again.		Saloon full. Client id=9 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 11 arrives.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 2.

  		Barber  begins hair cut of 16.5 minutes. ClientId: 1 Freechairs = 0 Cut? false.
 Client id= 12 arrives.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=1 ends hair cut of 16.5 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 2 ***	

 Client id= 4 arrives again.  Client id=4 seats and waits. Freechairs = 0. Trials: 2.
  		Client id=2 begins hair cut of 27.47 minutes.
 Client id= 13 arrives.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 14 arrives.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 15 arrives.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 9 arrives again.		Saloon full. Client id=9 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 10 arrives again.		Saloon full. Client id=10 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=10 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 3 ***	

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 14 arrives again.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 2.

  		Barber  begins hair cut of 27.47 minutes. ClientId: 2 Freechairs = 0 Cut? false.
 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 9 arrives again.		Saloon full. Client id=9 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=9 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 4 ***	

 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 5 arrives again.		Saloon full. Client id=5 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=5 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 5 ***	

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 6 arrives again.		Saloon full. Client id=6 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=6 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 6 ***	

 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 3.

  		Client id=2 ends hair cut of 27.47 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 7 ***	

  		Client id=3 begins hair cut of 25.2 minutes.
 Client id= 13 arrives again.  Client id=13 seats and waits. Freechairs = 0. Trials: 4.
 Client id= 14 arrives again.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 8 arrives again.		Saloon full. Client id=8 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=8 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 8 ***	

  		Barber  begins hair cut of 25.2 minutes. ClientId: 3 Freechairs = 0 Cut? false.
 Client id= 11 arrives again.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=11 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 9 ***	

 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 3.

 Client id= 12 arrives again.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 4.

		*** Client id=12 departed. Freechairs = 0. Hair cut? false. Trials? 4. Clients departed: 10 ***	

  		Client id=3 ends hair cut of 25.2 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 11 ***	

  		Client id=7 begins hair cut of 19.0 minutes.
 Client id= 14 arrives again.  Client id=14 seats and waits. Freechairs = 0. Trials: 4.
  		Barber  begins hair cut of 19.0 minutes. ClientId: 7 Freechairs = 0 Cut? false.
  		Client id=7 ends hair cut of 19.0 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 5.
		*** Client id=7 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 12 ***	

  		Client id=4 begins hair cut of 17.88 minutes.
 Client id= 15 arrives again.  Client id=15 seats and waits. Freechairs = 0. Trials: 4.
  		Barber  begins hair cut of 17.88 minutes. ClientId: 4 Freechairs = 0 Cut? false.
  		Client id=4 ends hair cut of 17.88 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 6.
		*** Client id=4 departed. Freechairs = 1. Hair cut? true. Trials? 2. Clients departed: 13 ***	

  		Client id=13 begins hair cut of 16.06 minutes.
  		Barber  begins hair cut of 16.06 minutes. ClientId: 13 Freechairs = 1 Cut? false.
  		Client id=13 ends hair cut of 16.06 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 7.
		*** Client id=13 departed. Freechairs = 2. Hair cut? true. Trials? 4. Clients departed: 14 ***	

  		Client id=14 begins hair cut of 21.74 minutes.
  		Barber  begins hair cut of 21.74 minutes. ClientId: 14 Freechairs = 2 Cut? false.
  		Client id=14 ends hair cut of 21.74 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 8.
		*** Client id=14 departed. Freechairs = 3. Hair cut? true. Trials? 4. Clients departed: 15 ***	

  		Client id=15 begins hair cut of 21.53 minutes.
  		Client id=15 ends hair cut of 21.53 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 9.
		*** Client id=15 departed. Freechairs = 4. Hair cut? true. Trials? 4. Clients departed: 16 ***	

   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************



		***		Barber Saloon Simulation	8	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		16,	the nr total of clients 
 nChairs= 		5, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 30.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	120, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 3,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 16.58 minutes. ClientId: 0 Freechairs = 4 Cut? false.
  		Client id=0 begins hair cut of 16.58 minutes.
  		Client id=0 ends hair cut of 16.58 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 1 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 15.83 minutes. ClientId: 1 Freechairs = 4 Cut? false.
  		Client id=1 begins hair cut of 15.83 minutes.
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 15.83 minutes. ClientId: 1 Freechairs = 3 Cut? false.
  		Client id=1 ends hair cut of 15.83 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 2 ***	

  		Client id=2 begins hair cut of 22.25 minutes.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 22.25 minutes. ClientId: 2 Freechairs = 3 Cut? false.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=2 ends hair cut of 22.25 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Client id=3 begins hair cut of 27.95 minutes.
 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 27.95 minutes. ClientId: 3 Freechairs = 2 Cut? false.
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=3 ends hair cut of 27.95 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Client id=4 begins hair cut of 18.99 minutes.
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 1. Trials: 1.
  		Barber  begins hair cut of 18.99 minutes. ClientId: 4 Freechairs = 1 Cut? false.
  		Client id=4 ends hair cut of 18.99 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 5 ***	

  		Client id=5 begins hair cut of 27.86 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 1. Trials: 1.
  		Barber  begins hair cut of 27.86 minutes. ClientId: 5 Freechairs = 1 Cut? false.
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=5 ends hair cut of 27.86 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 6 ***	

  		Client id=6 begins hair cut of 26.58 minutes.
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 0. Trials: 1.
 Client id= 11 arrives.		Saloon full. Client id=11 comes maybe later. Freechairs = 0. Trials: 1.

  		Barber  begins hair cut of 26.58 minutes. ClientId: 6 Freechairs = 0 Cut? false.
 Client id= 12 arrives.		Saloon full. Client id=12 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=6 ends hair cut of 26.58 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 7 ***	

  		Client id=7 begins hair cut of 18.88 minutes.
 Client id= 11 arrives again.  Client id=11 seats and waits. Freechairs = 0. Trials: 2.
  		Barber  begins hair cut of 18.88 minutes. ClientId: 7 Freechairs = 0 Cut? false.
  		Client id=7 ends hair cut of 18.88 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 26.23 minutes.
 Client id= 12 arrives again.  Client id=12 seats and waits. Freechairs = 0. Trials: 2.
 Client id= 13 arrives.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 1.

 Client id= 14 arrives.		Saloon full. Client id=14 comes maybe later. Freechairs = 0. Trials: 1.

  		Barber  begins hair cut of 26.23 minutes. ClientId: 8 Freechairs = 0 Cut? false.
 Client id= 15 arrives.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 1.

  		Client id=8 ends hair cut of 26.23 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 9 ***	

 Client id= 14 arrives again.  Client id=14 seats and waits. Freechairs = 0. Trials: 2.
  		Client id=9 begins hair cut of 20.18 minutes.
 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 2.

 Client id= 13 arrives again.		Saloon full. Client id=13 comes maybe later. Freechairs = 0. Trials: 3.

		*** Client id=13 departed. Freechairs = 0. Hair cut? false. Trials? 3. Clients departed: 10 ***	

 Client id= 15 arrives again.		Saloon full. Client id=15 comes maybe later. Freechairs = 0. Trials: 2.

  		Barber  begins hair cut of 20.18 minutes. ClientId: 9 Freechairs = 0 Cut? false.
  		Client id=9 ends hair cut of 20.18 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 11 ***	

  		Client id=10 begins hair cut of 29.57 minutes.
 Client id= 15 arrives again.  Client id=15 seats and waits. Freechairs = 0. Trials: 3.
  		Barber  begins hair cut of 29.57 minutes. ClientId: 10 Freechairs = 0 Cut? false.
  		Client id=10 ends hair cut of 29.57 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 12 ***	

  		Client id=11 begins hair cut of 17.42 minutes.
  		Client id=11 ends hair cut of 17.42 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 2. Hair cut? true. Trials? 2. Clients departed: 13 ***	

  		Client id=12 begins hair cut of 21.02 minutes.
  		Barber  begins hair cut of 21.02 minutes. ClientId: 12 Freechairs = 2 Cut? false.
  		Client id=12 ends hair cut of 21.02 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 3. Hair cut? true. Trials? 2. Clients departed: 14 ***	

  		Barber  begins hair cut of 22.05 minutes. ClientId: 14 Freechairs = 3 Cut? false.
  		Client id=14 begins hair cut of 22.05 minutes.
  		Barber  begins hair cut of 22.05 minutes. ClientId: 14 Freechairs = 3 Cut? false.
  		Client id=14 ends hair cut of 22.05 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 14.
		*** Client id=14 departed. Freechairs = 4. Hair cut? true. Trials? 2. Clients departed: 15 ***	

  		Client id=15 begins hair cut of 27.52 minutes.
  		Client id=15 ends hair cut of 27.52 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 15.
		*** Client id=15 departed. Freechairs = 5. Hair cut? true. Trials? 3. Clients departed: 16 ***	

   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************

		***		Barber Saloon Simulation	9	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		16,	the nr total of clients 
 nChairs= 		3, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 45.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	120, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 5,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 3. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 2. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.07 minutes...
  		Barber  begins hair cut of 23.21 minutes. ClientId: 0 Freechairs = 2 Cut? false.
  		Client id=0 begins hair cut of 23.21 minutes.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 1. Trials: 1.
  		Barber  begins hair cut of 23.21 minutes. ClientId: 0 Freechairs = 1 Cut? false.
  		Client id=0 ends hair cut of 23.21 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Client id=1 begins hair cut of 24.22 minutes.
  		Client id=1 ends hair cut of 24.22 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 2 ***	

 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 17.82 minutes. ClientId: 2 Freechairs = 2 Cut? false.
  		Client id=2 begins hair cut of 17.82 minutes.
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=2 ends hair cut of 17.82 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 3 ***	

  		Barber  begins hair cut of 15.53 minutes. ClientId: 3 Freechairs = 2 Cut? false.
  		Client id=3 begins hair cut of 15.53 minutes.
 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 1. Trials: 1.
  		Barber  begins hair cut of 15.53 minutes. ClientId: 3 Freechairs = 1 Cut? false.
  		Client id=3 ends hair cut of 15.53 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 4 ***	

  		Client id=4 begins hair cut of 19.2 minutes.
  		Client id=4 ends hair cut of 19.2 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 5 ***	

 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 28.32 minutes. ClientId: 5 Freechairs = 2 Cut? false.
  		Client id=5 begins hair cut of 28.32 minutes.
 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 1. Trials: 1.
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 0. Trials: 1.
  		Barber  begins hair cut of 28.32 minutes. ClientId: 5 Freechairs = 0 Cut? false.
  		Client id=5 ends hair cut of 28.32 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 6 ***	

  		Client id=6 begins hair cut of 15.58 minutes.
  		Client id=6 ends hair cut of 15.58 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 7 ***	

  		Client id=7 begins hair cut of 22.24 minutes.
  		Barber  begins hair cut of 22.24 minutes. ClientId: 7 Freechairs = 2 Cut? false.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=7 ends hair cut of 22.24 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Client id=8 begins hair cut of 20.28 minutes.
  		Barber  begins hair cut of 20.28 minutes. ClientId: 8 Freechairs = 2 Cut? false.
  		Client id=8 ends hair cut of 20.28 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 9 ***	

 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 2. Trials: 1.
  		Client id=9 begins hair cut of 24.23 minutes.
  		Barber  begins hair cut of 24.23 minutes. ClientId: 9 Freechairs = 2 Cut? false.
  		Client id=9 ends hair cut of 24.23 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 10 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 3. 
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 28.11 minutes. ClientId: 10 Freechairs = 2 Cut? false.
  		Client id=10 begins hair cut of 28.11 minutes.
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=10 ends hair cut of 28.11 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 11 ***	

  		Client id=11 begins hair cut of 20.13 minutes.
  		Barber  begins hair cut of 20.13 minutes. ClientId: 11 Freechairs = 2 Cut? false.
  		Client id=11 ends hair cut of 20.13 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 3. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 2. Trials: 1.
  		Barber  begins hair cut of 27.97 minutes. ClientId: 12 Freechairs = 2 Cut? false.
  		Client id=12 begins hair cut of 27.97 minutes.
 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 1. Trials: 1.
 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 0. Trials: 1.
  		Client id=12 ends hair cut of 27.97 minutes. Now: Freechairs = 1. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 1. Hair cut? true. Trials? 1. Clients departed: 13 ***	

  		Client id=13 begins hair cut of 26.12 minutes.
  		Barber  begins hair cut of 26.12 minutes. ClientId: 13 Freechairs = 1 Cut? false.
  		Client id=13 ends hair cut of 26.12 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 14 ***	

  		Client id=14 begins hair cut of 17.53 minutes.
  		Barber  begins hair cut of 17.53 minutes. ClientId: 14 Freechairs = 2 Cut? false.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 1. Trials: 1.
  		Client id=14 ends hair cut of 17.53 minutes. Now: Freechairs = 2. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 2. Hair cut? true. Trials? 1. Clients departed: 15 ***	

  		Client id=15 begins hair cut of 28.69 minutes.
  		Barber  begins hair cut of 28.69 minutes. ClientId: 15 Freechairs = 2 Cut? false.
  		Client id=15 ends hair cut of 28.69 minutes. Now: Freechairs = 3. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 3. Hair cut? true. Trials? 1. Clients departed: 16 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 3. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************

		***		Barber Saloon Simulation	10	***		

		***		Parameters	(panel of configuration) 		***		

 nClients= 		16,	the nr total of clients 
 nChairs= 		5, 	the nr total of chairs (=> barber chair included).
 minTimeHairCut= 	15.0,	the minimum fixed time for hair cut (minutes).
 variableTimeCut= 	15.0,	for max variable time in hair cut (minutes).
 maxTimeBetweenCuts= 	1.0,	for max time between hair cuts (minutes).
 maxTimeBetweenClients= 120.0,	for max arrival time between 2 clients (minutes).
 pauseBeforeJoins= 	120, 	the pause main thread do before doing final joins (minutes).
 MaxClientAttemptsToCutHair= 3,	the nr total of attempts to cut hair per client. 


 		***	Begin Simulation Barber Saloon (Sleeping Barber)	*** 


 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 0 arrives.  Client id=0 seats and waits. Freechairs = 4. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.13 minutes...
  		Barber  begins hair cut of 27.7 minutes. ClientId: 0 Freechairs = 4 Cut? false.
  		Client id=0 begins hair cut of 27.7 minutes.
 Client id= 1 arrives.  Client id=1 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 27.7 minutes. ClientId: 0 Freechairs = 3 Cut? false.
  		Client id=0 ends hair cut of 27.7 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 1.
		*** Client id=0 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 1 ***	

  		Client id=1 begins hair cut of 25.72 minutes.
  		Client id=1 ends hair cut of 25.72 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 2.
		*** Client id=1 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 2 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 2 arrives.  Client id=2 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 19.91 minutes. ClientId: 2 Freechairs = 4 Cut? false.
  		Client id=2 begins hair cut of 19.91 minutes.
  		Client id=2 ends hair cut of 19.91 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 3.
		*** Client id=2 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 3 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 3 arrives.  Client id=3 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 17.64 minutes. ClientId: 3 Freechairs = 4 Cut? false.
  		Client id=3 begins hair cut of 17.64 minutes.
  		Client id=3 ends hair cut of 17.64 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 4.
		*** Client id=3 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 4 ***	

 Client id= 4 arrives.  Client id=4 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 22.36 minutes. ClientId: 4 Freechairs = 4 Cut? false.
  		Client id=4 begins hair cut of 22.36 minutes.
  		Client id=4 ends hair cut of 22.36 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 5.
		*** Client id=4 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 5 ***	

 Client id= 5 arrives.  Client id=5 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.33 minutes. ClientId: 5 Freechairs = 4 Cut? false.
  		Client id=5 begins hair cut of 25.33 minutes.
  		Client id=5 ends hair cut of 25.33 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 6.
		*** Client id=5 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 6 ***	

 Client id= 6 arrives.  Client id=6 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.49 minutes. ClientId: 6 Freechairs = 4 Cut? false.
  		Client id=6 begins hair cut of 24.49 minutes.
  		Client id=6 ends hair cut of 24.49 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 7.
		*** Client id=6 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 7 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 7 arrives.  Client id=7 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 23.57 minutes. ClientId: 7 Freechairs = 4 Cut? false.
  		Client id=7 begins hair cut of 23.57 minutes.
 Client id= 8 arrives.  Client id=8 seats and waits. Freechairs = 3. Trials: 1.
  		Client id=7 ends hair cut of 23.57 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 8.
		*** Client id=7 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 8 ***	

  		Barber  begins hair cut of 20.27 minutes. ClientId: 8 Freechairs = 4 Cut? false.
  		Client id=8 begins hair cut of 20.27 minutes.
  		Client id=8 ends hair cut of 20.27 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 9.
		*** Client id=8 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 9 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 9 arrives.  Client id=9 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 25.24 minutes. ClientId: 9 Freechairs = 4 Cut? false.
  		Client id=9 begins hair cut of 25.24 minutes.
  		Client id=9 ends hair cut of 25.24 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 10.
		*** Client id=9 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 10 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 10 arrives.  Client id=10 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 24.39 minutes. ClientId: 10 Freechairs = 4 Cut? false.
  		Client id=10 begins hair cut of 24.39 minutes.
 Client id= 11 arrives.  Client id=11 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 24.39 minutes. ClientId: 10 Freechairs = 3 Cut? false.
  		Client id=10 ends hair cut of 24.39 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 11.
		*** Client id=10 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 11 ***	

  		Client id=11 begins hair cut of 22.36 minutes.
  		Client id=11 ends hair cut of 22.36 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 12.
		*** Client id=11 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 12 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
 Client id= 12 arrives.  Client id=12 seats and waits. Freechairs = 4. Trials: 1.
   >>>> Barber Ready, but Client not Ready. +  Barber sleeps/pauses 0.04 minutes...
  		Client id=12 begins hair cut of 23.13 minutes.
  		Client id=12 ends hair cut of 23.13 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 13.
		*** Client id=12 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 13 ***	

 Client id= 13 arrives.  Client id=13 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 22.91 minutes. ClientId: 13 Freechairs = 4 Cut? false.
  		Client id=13 begins hair cut of 22.91 minutes.
  		Client id=13 ends hair cut of 22.91 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 14.
		*** Client id=13 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 14 ***	

 Client id= 14 arrives.  Client id=14 seats and waits. Freechairs = 4. Trials: 1.
  		Barber  begins hair cut of 22.32 minutes. ClientId: 14 Freechairs = 4 Cut? false.
  		Client id=14 begins hair cut of 22.32 minutes.
 Client id= 15 arrives.  Client id=15 seats and waits. Freechairs = 3. Trials: 1.
  		Barber  begins hair cut of 22.32 minutes. ClientId: 14 Freechairs = 3 Cut? false.
  		Client id=14 ends hair cut of 22.32 minutes. Now: Freechairs = 4. Now: Nr Hair Cuts Done = 15.
		*** Client id=14 departed. Freechairs = 4. Hair cut? true. Trials? 1. Clients departed: 15 ***	

  		Client id=15 begins hair cut of 19.1 minutes.
  		Client id=15 ends hair cut of 19.1 minutes. Now: Freechairs = 5. Now: Nr Hair Cuts Done = 16.
		*** Client id=15 departed. Freechairs = 5. Hair cut? true. Trials? 1. Clients departed: 16 ***	

 >>>> Barber maybe sleeps... saloon calm... Free chairs were 5. 
   *** Summary of Clients (threads) finished (joined) *** 

 Client id: 0 finished => thread joined.		Client id: 1 finished => thread joined.		
 Client id: 2 finished => thread joined.		Client id: 3 finished => thread joined.		
 Client id: 4 finished => thread joined.		Client id: 5 finished => thread joined.		
 Client id: 6 finished => thread joined.		Client id: 7 finished => thread joined.		
 Client id: 8 finished => thread joined.		Client id: 9 finished => thread joined.		
 Client id: 10 finished => thread joined.		Client id: 11 finished => thread joined.		
 Client id: 12 finished => thread joined.		Client id: 13 finished => thread joined.		
 Client id: 14 finished => thread joined.		Client id: 15 finished => thread joined.		

 		****		End Simulation		****

************************************************************************************************



